From 5136d172b897db21789ad1990e379b3c1a10c269 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Fri, 18 Nov 2005 19:46:34 +0000 Subject: [PATCH] oops; backwards test --- gpsbabel/smplrout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/smplrout.c b/gpsbabel/smplrout.c index cd1318ac9..40d2f897d 100644 --- a/gpsbabel/smplrout.c +++ b/gpsbabel/smplrout.c @@ -220,7 +220,7 @@ routesimple_tail( const route_head *rte ) xte_recs[i].intermed->xte_rec = xte_recs+i; } /* while we still have too many records... */ - while ( (countopt && count < xte_count) || (erroropt && error < totalerror) ) { + while ( (countopt && count < xte_count) || (erroropt && totalerror < error) ) { i = xte_count - 1; /* remove the record with the lowest XTE */ if ( erroropt ) { -- 2.30.2